package com.infowarelab.javatest.impl;

import com.infowarelab.javatest.Computer;
import com.infowarelab.javatest.ComputerFactory;
import com.infowarelab.javatest.ComputerService;

public class ComputerServiceImpl implements ComputerService {

	private ComputerFactory computerFactory;

	/**
	 * @return the computerFactory
	 */
	public ComputerFactory getComputerFactory() {
		return computerFactory;
	}

	/**
	 * @param computerFactory the computerFactory to set
	 */
	public void setComputerFactory(ComputerFactory computerFactory) {
		this.computerFactory = computerFactory;
	}

	public String useDellComputer() {
		Computer computer=computerFactory.produceComputer("Dell");
		return computer.getModelNumber();
	}

}
